Skip to content

Conversation

@JedMeister
Copy link
Member

@JedMeister JedMeister commented Jan 11, 2024

Change gh_release default behaviour to only show latest stable by default, also removing pre-release versions (assuming that they contain alpha|beta|rc keywords) from the output. Previous behaviour can still be obtained via gh_release --all --pre-release <user>/<repo>:

Usage: gh_releases [OPTIONS] <user>/<repo>

Options:
    -h|--help   show this help and exit
    -a|--all    show all (stable) versions, not just the most recent
    -p|--pre-release
                include alpha, beta and rc versions

Env Vars:
    # used for github api
    GITHUB_USER
    GITHUB_USER_TOKEN

    # retain temp files and set x
    DEBUG

    # omit tags or releases in output respectively if set
    NO_TAGS
    NO_RELEASES

Note: Setting GITHUB_USER and GITHUB_USER_TOKEN environment variables are
      recommended. If not set, multipage results may be unreliable.

@JedMeister JedMeister closed this Aug 15, 2025
@JedMeister JedMeister deleted the 18.x-gh_releases branch August 15, 2025 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant